/*
 * Copyright (c) 2012-2014, EpicSaaS Yuan Xin technology Co., Ltd.
 * 
 * All rights reserved.
 */
package com.epicsaas.app.ksdapp.android.bean;

import java.util.List;

/**
 * @author fbl
 * 首页广告
 */
public class MainTopAdvertisement {

    private int column_id;

    private long id;

    /** 尺寸，包含width和height两个字段 */
    private AdSize adSize;

    /** 当前有效的投放广告 */
    private List<AdServing> activeServings;

    @Override
    public String toString() {
        return "MainTopAdvertisement [id=" + id + ", adSize=" + adSize + ", activeServings=" + activeServings + "]";
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public AdSize getAdSize() {
        return adSize;
    }

    public void setAdSize(AdSize adSize) {
        this.adSize = adSize;
    }

    public List<AdServing> getActiveServings() {
        return activeServings;
    }

    public void setActiveServings(List<AdServing> activeServings) {
        this.activeServings = activeServings;
    }

    /** 尺寸，包含width和height两个字段 */
    public class AdSize {

        private int width;

        private int height;

        @Override
        public String toString() {
            return "AdSize [width=" + width + ", height=" + height + "]";
        }

        public int getWidth() {
            return width;
        }

        public void setWidth(int width) {
            this.width = width;
        }

        public int getHeight() {
            return height;
        }

        public void setHeight(int height) {
            this.height = height;
        }

    }

    /** 当前有效的投放广告 */
    public class AdServing {

        @Override
        public String toString() {
            return "AdServing [id=" + id + ", type=" + type + ", adMaterial=" + adMaterial + "]";
        }

        private int id;

        /** 类型 */
        private String type;

        /** 广告物料 */
        private AdMaterial adMaterial;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public AdMaterial getAdMaterial() {
            return adMaterial;
        }

        public void setAdMaterial(AdMaterial adMaterial) {
            this.adMaterial = adMaterial;
        }

        /** 广告物料 */
        public class AdMaterial {

            private int id;

            private String path;

            private String url;

            @Override
            public String toString() {
                return "AdMaterial [id=" + id + ", path=" + path + ", url=" + url + "]";
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getPath() {
                return path;
            }

            public void setPath(String path) {
                this.path = path;
            }

            public String getUrl() {
                return url;
            }

            public void setUrl(String url) {
                this.url = url;
            }
        }
    }
}
